function [A,c] = arrayBuild(s_c)
global own nei num
num=max(own(2:end));
A=zeros(num,num);
c=zeros(num,num);
for i=1:nei(1)
    A(own(i+1),nei(i+1))=1;
    c(own(i+1),nei(i+1))=sqrt(sum(s_c(i,:).^2));
end
c=c+c';
%A=A+A'+eye(num);
end